import request from '@/utils/request'

// 获取收入概览
export function getIncomeSummary() {
  return request({
    url: '/api/finance/income_summary/',
    method: 'get'
  })
}

// 获取收入明细列表
export function getIncomeList() {
  return request({
    url: '/api/finance/income_list/',
    method: 'get'
  })
}

// 申请提现
export function submitWithdrawal(data) {
  return request({
    url: '/api/finance/withdraw/',
    method: 'post',
    data
  })
}

// 获取提现记录列表
export function getWithdrawalList() {
  return request({
    url: '/api/finance/withdrawal_list/',
    method: 'get'
  })
} 